package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.OrderItems;
import com.easy.common.bean.Orders;

import java.util.List;

/**
 * 订单业务处理
 */
public interface IOrdersService {
    Orders insert(Orders orders);
    Orders update(Orders orders);
    Orders transact(Integer id);
    Orders cancel(Integer id);
    //int delete(Integer id);
    Orders getByID(Integer id);
    IPage<Orders> getListByUserID(IPage page,Integer userid);
    IPage<Orders> getListByCustomerID(IPage page,Integer customerid);
    //List<Orders> getList(Orders orders);


    OrderItems insertItem(OrderItems orderItems);
    OrderItems updateItem(OrderItems orderItems);
    int deleteItem(Integer id);
}
